{include file="public/header"}
<div class="bg_fixed_v10_1"></div>
<body class="">
<div class="sectionY sectionY_tttt">
    <a href="javascript:history.back();">
        <img src="__PUBLIC__/home/images/v10_a9.png" alt="" class="a1">
    </a>
    <p class="p1">
        <span class="ppp_title">发布求购</span>
    </p>
</div>
<div class="kong1"></div>
<div class="ecx_section1">
    <div class="container">
        <p class="p2">提醒：</p>
        <p class="p1">发布求购要以整数为单位。</p>
    </div>
</div>
<div class="ecx_section2">
    <div class="t1">
        <div class="t2">
            <div class="f1 clearfix">
                <span class="s1">求购数量：</span>
                <input type="number" name='num' placeholder=""  min="1" step="1" id="num" autocomplete="off"/>
            </div>
            <div class="f1 clearfix">
                <span class="s1">求购单价：</span>
                <input type="number" name='price' placeholder="" min="0" id="price" autocomplete="off"/>
            </div>
        </div>
        <div class="sub">
            <input type="button" value="确认求购" id="submit"/>
            <p class="p1">提示：请先通过实名认证再进行求购</p>
        </div>
    </div>
</div>
</body>
<script>
    $("#submit").click(function (){
        var num = $("#num").val();
        var price = $("#price").val();
        $.ajax({
            url:"{:url('Set/orderPublish')}",
            type:"POST",
            data:{
                num,
                price
            },
            dataType:"JSON",
            success:function (res){
                layer.msg(res.result_info)
                if(res.result_code == 0){
                    setTimeout(function (){
                        location.href='{:url("Rent/order")}'
                    }, 888)
                }
            },
            error: function (res) {
                alert(res)
                
            }
            

        })




    });
</script>
</html>
